package com.geostar.constructionland.attachment.service;

import com.geostar.constructionland.attachment.entity.GeoAttachment;
import com.geostar.constructionland.attachment.entity.RepEntity;

import java.util.List;

/**
 * @author : yell
 * @Description: 分片接口
 * @date : 2020/12/29 16:47
 */
public interface IChunkService {
    /**上传分片**/
    boolean uploadChunk(GeoAttachment geoAttachment);
    /**合并分片**/
    RepEntity mergeChunks(GeoAttachment geoAttachment) throws Exception;
    /**清除分片**/
    boolean cleanChunks(String md5);
    /**获取重新上传分片信息**/
    List<String> getReUploadChunkInfo(String md5,int chunkSize);
    /***是否上传成功*/
    boolean isChunkAll(GeoAttachment geoAttachment);
}
